package com.xz.client;

import com.xz.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-vod")
@Component
public interface VideoClient {
    //根据视频id删除阿里云视频
    @DeleteMapping("/vod/video/removeAlyVideo/{id}")
    public R removeAlyVideo(@PathVariable String id);

    @GetMapping("/vod/video/getPlayAuth/{id}")
    public String getPlayAuth(@PathVariable String id);
    //得到视频的地址
    @GetMapping("/vod/video/getPlayUrl/{id}")
    public String getPlayUrl(@PathVariable String id);
}
